package com.jxt.mina.db;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DBUtil {
	
	public static Connection conn() throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException{
		String userName = "root";
		String password = "123456";
		String url = "jdbc:mysql://118.123.244.108:3306/test?useUnicode=true&characterEncoding=UTF-8";
		Class.forName("com.mysql.jdbc.Driver").newInstance();
		Connection conn = DriverManager.getConnection(url, userName, password);
		return conn;
	}
}
